package itdfq.dfq.Behavior_Patters.zhizelian;

/**
 * @Author GocChin
 * @Date 2021/5/3 18:28
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Xiaozhang extends Leaders{
    public Xiaozhang(String name) {
        super(name);
    }

    @Override
    public void handleRe(Scholarship scholarship) {
        if (scholarship.getMoney()>=1000){
            System.out.println("校长"+name+"批准"+scholarship.getName()+"的研究经费："+scholarship.getMoney());
        }else{
            if (this.leaders!=null){
                this.leaders.handleRe(scholarship);
            }
        }
    }
}
